package study08;

interface Animal03{
    String name = "波斯猫";    //全局常量，名称
    public void info();     // 定义抽象方法, 信息
}

interface Color{
    public void color();
}

interface Action03 extends Animal03, Color{
    public void shout();
}

//定义Cat3类实现Animal03接口和Action03接口
class Cat3 implements Action03{
    public void color(){
        System.out.println("黄白相间");
    }
    public void info(){
        System.out.println("名称：" + name);
    }
    public void shout(){
        System.out.println("喵喵喵....");
    }
    public void eat(){
        System.out.println("喜欢吃鱼");
    }
}

/**
* @author GZQ
* @Date 2023/12/7
 */
public class Test03 {
    public static void main(String[] args) {
        Cat3 c3 = new Cat3();
        c3.info();
        c3.shout();
        c3.color();
    }
}
